const TokenKey:string = 'lege-token';

// 获取token
export const getToken = () => {
    return localStorage.getItem(TokenKey);
};

// 设置token
export const setToken = (value:string) => {
    return localStorage.setItem(TokenKey, value);
};

// 清除token
export const clearToken = () => {
    return localStorage.setItem(TokenKey, '');
};